package com.yonyou.brigade.facade.controller;

import com.yonyou.brigade.facade.service.IReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/report")
public class ReportController {

    @Autowired
    private IReportService reportService;

    @RequestMapping(value = "/url", method = RequestMethod.POST)
    public List getReportUrl(@RequestBody Map<String, String> params){
        return reportService.getReportUrl(params.get("tenantId"));
    }
}
